#!/usr/bin/env bash

sparkDir="/home/hmt/software/spark-2.4.0-bin-hadoop2.7/bin/spark-submit"
jarDir="/home/hmt/jar_collection/sjaq_v1-1.0-SNAPSHOT.jar"
classPath="collection.check.collection_sparkCheck"
logDir="/home/hmt/logs/collection_sparkCheck.txt"

#这个流任务远行在本地work，不知道为什么。那这里就不指定为本地远行了，
nohup  ${sparkDir} --master spark://cloud107:7077   --executor-cores 2  --total-executor-cores 2  --executor-memory 1g   --class ${classPath}  ${jarDir} >${logDir}  2>&1  &